from django.conf.urls import url

from request_response import views

urlpatterns = [
    url(r'^weather/([a-z]+)/(\d{4}/$)',views.weather1),
    url(r'^weather2/(?P<city>[a-z]+)/(?P<year>\d{4}/$)',views.weather2),

    url(r'weather3/(?P<city>[a-z]+)/(?P<year>\d{4})/$',views.weather3),

    url(r'^get_body_form/$',views.get_body_form),

    url(r'^get_body_json/$',views.get_body_json),
    #　测试ｓｅｓｓｉｏｎ缓存到ｒｅｄｉｓ
    url(r'^session_demo/$',views.session_demo),
    #　测试ｃｏｏｋｉｅ
    url(r'^cookie_demo',views.cookie_demo),

    url(r'^response_redirect/$',views.response_redirect),

    url(r'^response_json/$',views.response_json),

    url(r'^response_demo/$',views.response_demo)
]